// 业务路由表（必须经过权限过滤才能决定 用户能访问哪些路由）
export default[
    {
        path: '/index',
        name: 'index',
        meta: {title:'考勤管理'},
        component: () => import('../views/Index.vue'),
        children:[
            {
                path: '/index/business',
                name: 'business',
                meta: {title:'出差申请',permission:11},
                component: () => import('../views/Index/Business.vue'),
            },
            {
                path: '/index/outside',
                name: 'outside',
                meta: {title:'外勤打卡',permission:12},
                component: () => import('../views/Index/Outside.vue'),
            },
            {
                path: '/index/leave',
                name: 'leave',
                meta: {title:'请假申请',permission:13},
                component: () => import('../views/Index/Leave.vue'),
            },
            {
                path: '/index/work',
                name: 'work',
                meta: {title:'加班申请',permission:14},
                component: () => import('../views/Index/Work.vue'),
            },
            {
                path: '/index',
                redirect:'/index/business'
            },
            {
                path: '/index/:error(.*)',
                component: () => import('../views/NotFound.vue')
            },
        ]
    },
    {
        path: '/register',
        name: 'register',
        meta: {title:'考勤管理-注册',permission:2},
        component: () => import('../views/Register.vue')
    },
]